package com.service.impl;

import com.mapper.PetInfoMapper;
import com.pojo.Petinfo;
import com.service.PetInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author Zhengjz
 * @version 1.0
 * @className PetInfoServiceimpl
 * @date 2021/3/1 23:13
 */
@Service
public class PetInfoServiceimpl implements PetInfoService {

    @Autowired
    private PetInfoMapper petInfoMapper;

    @Override
    public int addPet(Petinfo petinfo) {
        return petInfoMapper.addPet(petinfo);
    }

    @Override
    public List<Petinfo> findAll() {
        return petInfoMapper.findAll();
    }

    @Override
    public int delById(String id) {
        return petInfoMapper.delById(id);
    }

    @Override
    public List<Petinfo> findByName(String name) {
        return petInfoMapper.findByName(name);
    }

    @Override
    public List<Petinfo> iPet(Integer id) {
        return petInfoMapper.iPet(id);
    }

    @Override
    public List<Petinfo> iPetNamt(Map map) {
        return petInfoMapper.iPetNamt(map);
    }
}
